﻿using System.Collections.Generic;

namespace Algoritmia.DataStructures.Digraphs
{
    public interface IDigraph<T>
    {
        IVertexSet<T> V { get; }
        IEdgeSet<T> E { get; }
        bool IsDirected { get;  }
        IEnumerable<T> Successors(T vertex);
        IEnumerable<T> Predecessors(T vertex);
        int OutDegree(T vertex);
        int InDegree(T vertex);
    }
}
